home *** CD-ROM | disk | FTP | other *** search
- Path: gail.ripco.com!mambuhl
- From: mambuhl@ripco.com (Martin Ambuhl)
- Newsgroups: comp.lang.c
- Subject: Re: Gcc compiling with ma
- Date: 8 Mar 1996 12:02:00 GMT
- Organization: Ripco Communications, Inc.
- Message-ID: <4hp7jo$krp@gail.ripco.com>
- NNTP-Posting-Host: golden.ripco.com
-
- email@interpro.net.au (Mark)
- in <email.14.000ACC40@interpro.net.au> writes:
-
-
- >I'm trying to compile a GCC Programme which includes the math.h library. How
- >do I compile this? I.e
-
- >I have tried gcc filename.c -lm
-
- >with no success.
-
- Since this should work, and you haven't told us what happens, it's a
- pure guess. Is it just that you can't find the output? If you want an
- output file with a name other than `a.out', use the option
- `-o your_output_file_name'.
-
- BTW, `math.h' is a header, not a library. The library is `libm.a'.
-
- --
- * Martin Ambuhl net: mambuhl@ripco.com
- * Chicago, IL (USA)
-